import request from "/@/utils/request"

export function fetchList(query?: Object) {
  return request({
    url: '/admin/alarmEnable/page',
    method: 'get',
    params: query
  })
}
// export function fetchList(obj?: Object) {
//   return request({
//     url: '/admin/alarmEnable/page',
//     method: 'post',
//     data: obj
//   })
// }

export function addObj(obj?: Object) {
  return request({
    url: '/admin/alarmEnable',
    method: 'post',
    data: obj
  })
}

export function getObj(id?: string) {
  return request({
    url: '/excesysiot/sceneLinkage/' + id,
    method: 'get'
  })
}

// export function delRuleObj(ids?: Object) {
//   return request({
//     url: '/admin/alarmEnable',
//     method: 'delete',
//     data: ids
//   })
// }
export function delRuleObj(ids?:Array<string>) {
  return request({
    url: '/admin/alarmEnable',
    method: 'delete',
    data: ids
  })
}

export function putObj(obj?: Object) {
  return request({
    url: '/admin/alarmEnable',
    method: 'put',
    data: obj
  })
}

export function getDetails(id?: string) {
  return request({
    url: '/admin/alarmEnable/' + id,
    method: 'get'
  })
}
export function queryAlarmTypeConf(query?: Object) {
	return request({
		url: '/admin/alarmTypeConf/page',
		method: 'get',
		params: query,
	});
}


